/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.genipapoconstrucoes.bd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author ifal
 */
public class ConexaoBD {
    public Connection abreConexao() {

        Connection conexao = null;
        try {
            conexao = DriverManager.getConnection("jdbc:mysql://localhost/BDgenipapoconstrucao", "root", "ifal");
        } catch (SQLException ex) {
            Logger.getLogger(ConexaoBD.class.getName()).log(Level.SEVERE, null, ex);
        }


        return conexao;
    }
}
